import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { createHtmlPlugin } from "vite-plugin-html";

import qiankun from "vite-plugin-qiankun";

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    port: 8083,
    headers: {
      'Access-Control-Allow-Origin': '*'
    }
  },

  plugins: [
    vue(),
    qiankun("viteTest", {
      useDevMode: true,
    }),
    createHtmlPlugin({
      minify: true,
      entry: "/src/main.ts",
      inject: {
        data: {
          title: "viteTest",
        },
      },
    }),
  ],

});
